using SeaVM;

namespace SeaVM.Instructions
{
    public class Pop
    {
        public static Instruction Create()
        {
            Instruction inst = new Instruction();
            inst.opcode = Opcode.Pop;
            return inst;
        }

        public static void Run(VM vm,Instruction inst)
        {
            if(vm.stack.Count > 0)
            {
                vm.stack.Pop();
            }
            vm.line++;
        }
        
    }
}